﻿///*
// * CoordinateSystemCache
// * 
// * initial implementation : 20.11.2008
// *
// * Copyright (c) Adam Sida, asida@centrum.cz.
// * All rights reserved.
// * 
// * for license see Petra.Gis.License.txt
// */
//using System;
//using System.Collections.Generic;
//using System.Runtime.Serialization;


//namespace Petra.Gis.ReferenceSystemServices
//{
//  /// <summary>
//  /// represents global Petra.Gis system cache with predefined coordinate systems
//  /// and their transforms usually this class is only loaded by xaml.
//  /// </summary>
//  [DataContract(Name="GlobalCrsCache")]
//  [KnownType(typeof(ProjectedCoordinateSystem))]
//  [KnownType(typeof(GeocentricCoordinateSystem))]
//  [KnownType(typeof(GeographicCoordinateSystem))]
//  public class CoordinateSystemCache
//  {

//    protected CoordinateSystemList _cordinateSystems;




//    /// <summary>
//    /// xaml constructor
//    /// </summary>
//    public CoordinateSystemCache()
//    {
//      _cordinateSystems = new CoordinateSystemList();
//    }




//    /// <summary>
//    /// stores predefined collection of Petra.Gis coordinate systems
//    /// this colection might help with datasources, without coordinate system,
//    /// where only coordinate system ID (eg. EPSG:2065) exists
//    /// then this collection is searched for full coordinate system def;-)
//    /// </summary>
//    [DataMember(Name="CrsList")]
//    public CoordinateSystemList CoordinateSystems
//    {
//      get { return _cordinateSystems; }
//      set
//      {
//        if (value == null)
//          throw new ArgumentException("Coordinate system can be null");
//        _cordinateSystems = value;
//      }
//    }

//  }
//}
